setLocation

fun setLocation(context: Context, lat: Double, lng: Double)

Track user location as a User Attribute

Since

12.0.00

Parameters

context

instance of Context

lat

The latitude of the user location

lng

The longitude of the user location


fun setLocation(context: Context, lat: Double, lng: Double, appId: String)

Track user location as a User Attribute

Since

12.0.00

Parameters

lat

The latitude of the user location

lng

The longitude of the user location

appId

Account identifier, APP ID on the MoEngage Dashboard.